package com.ruoyi.project.learn.ysdw.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 有声读物对象 dj_audio_book
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
public class DjAudioBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 有声读物ID */
    private Long id;

    /** 读物标题 */
    @Excel(name = "读物标题")
    private String title;

    /** 封面图片URL */
    @Excel(name = "封面图片URL")
    private String coverUrl;

    /** 音频资源URL */
    @Excel(name = "音频资源URL")
    private String audioUrl;

    /** 音频时长(秒) */
    @Excel(name = "音频时长(秒)")
    private Long duration;

    /** 朗读者 */
    @Excel(name = "朗读者")
    private String narrator;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 读物描述 */
    @Excel(name = "读物描述")
    private String description;

    /** 收听次数 */
    @Excel(name = "收听次数")
    private Long listenCount;

    /** 二维码图片URL */
    @Excel(name = "二维码图片URL")
    private String qrCodeUrl;

    /** 状态：1-启用，0-禁用 */
    @Excel(name = "状态：1-启用，0-禁用")
    private Integer status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCoverUrl(String coverUrl) 
    {
        this.coverUrl = coverUrl;
    }

    public String getCoverUrl() 
    {
        return coverUrl;
    }

    public void setAudioUrl(String audioUrl) 
    {
        this.audioUrl = audioUrl;
    }

    public String getAudioUrl() 
    {
        return audioUrl;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setNarrator(String narrator) 
    {
        this.narrator = narrator;
    }

    public String getNarrator() 
    {
        return narrator;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setListenCount(Long listenCount) 
    {
        this.listenCount = listenCount;
    }

    public Long getListenCount() 
    {
        return listenCount;
    }

    public void setQrCodeUrl(String qrCodeUrl) 
    {
        this.qrCodeUrl = qrCodeUrl;
    }

    public String getQrCodeUrl() 
    {
        return qrCodeUrl;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("coverUrl", getCoverUrl())
            .append("audioUrl", getAudioUrl())
            .append("duration", getDuration())
            .append("narrator", getNarrator())
            .append("category", getCategory())
            .append("description", getDescription())
            .append("listenCount", getListenCount())
            .append("qrCodeUrl", getQrCodeUrl())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
